package org.base.generator;

import org.base.generator.modules.code.service.GeneratorServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("org.base.generator.modules.*.mapper")
public class App {
	
	public static void main(String[] args) {
		ConfigurableApplicationContext  app = SpringApplication.run(App.class, args);
		GeneratorServiceImpl generatorService = app.getBean(GeneratorServiceImpl.class);
		String[] tableNames = new String[] {"sys_user"};
		generatorService.generatorCode(tableNames);
	}

}
